
<html> 
<head> 
  <title>LogList</title> 
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/> 
<link rel="stylesheet" type="text/css" href="/media/css/base.css" />  
<link rel="stylesheet" type="text/css" href="/media/css/forms.css" />
<link rel="stylesheet" type="text/css" href="/site_media/css/default.css"/>
<script type="text/javascript" src="/admin/jsi18n/"></script>    
<script type="text/javascript" src="/media/js/core.js"></script>
</head> 
<body>
    <form action="." method="GET">
    <table class=head> 
    {{ form.media }}
    {{ form.as_table }} 
    </table>
    <input type="submit" value="Submit">
    </form>

<div class="sevlegend">
SEVERITY LEGEND<br>
        <span class="sev2">Information</span>
        <span class="sev1">Security Audit Success</span>
        <span class="sev7">Error</span>
        <span class="sev3">Warning</span>
        <span class="sev6">Security Audit Failure</span>
</div>
<!--EventType:1=Error,2=Warning,3=Information,4=Security Audit Success,5=Security Audit Failure-->  
<table border="0" style="margin-top:20px;" cellspacing="1" cellpadding="1" alig
n="left" bordercolor="black"> 
  <tr class="resultsheader"> 
      <th class="normal">类型</th> 
      <th class="normal">日期</th> 
      <th class="normal">时间</th> 
      <th class="normal">来源</th> 
      <th class="normal">分类</th>
      <th class="normal">事件</th>
      <th class="normal">用户</th>
      <th class="normal">计算机</th>
      <th class="normal">消息</th>
   </tr> 
     {% for winlog in result.object_list %}
  <tr>    
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.categorystring}}</td>
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.date}}</td> 
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.time}}</td> 
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.sourcename}}</td> 
       {% ifequal winlog.eventtype 1 %}
       <td class="sev07">{{winlog.type}}</td>
       {% else %}
       {% ifequal winlog.eventtype 2 %}
       <td class="sev03">{{winlog.type}}</td>
       {% else %}
       {% ifequal winlog.eventtype 5 %}
           <td class="sev06">{{winlog.type}}</td>
       {% else %}
           <td class="{% cycle 'darker' 'lighter' %}">{{winlog.type}}</td>
       {% endifequal %}
       {% endifequal %}
       {% endifequal %}
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.eventcode}}</td> 
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.users}}</td>
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.computername}}</td>
       <td class="{% cycle 'darker' 'lighter' %}">{{winlog.message}}</td>
  </tr> 
   {% endfor %} 
 </table> 

{% if result.has_previous %}
<a href="?sourcename={{b}}&amp;page={{ result.previous_page_number }}" title="下一页">上一页</a>
{% endif %}
{% for p in page_range %}
{% ifequal p result.number %}
<span>{{p}}</span>
{% else %}
<a href="?sourcename={{b}}&amp;page={{p}}"{% ifequal p page %} class="selected"{% endifequal %} title="第{{p}}页">{{p}}</a>
{% endifequal %}
{% endfor %}
{% if result.has_next %}
<a href="?sourcename={{b}}&amp;page={{ result.next_page_number }}" title="下一页">下一页</a>
{% endif %}
<!-- 第 {{ userList.number }} 页 共 {{ userList.paginator.num_pages }} 页-->

</body>
</html>



